package com.heima.apis.admin;

import com.heima.model.admin.pojos.AdChannel;
import com.heima.model.common.dtos.ChannelDto;
import com.heima.model.common.dtos.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;

@Api(value = "频道管理",tags = "channel",description = "频道管理API")
public interface AdChannelControllerApi {
     @ApiOperation("频道分页列表查询")
    public ResponseResult findByNameAndPage(ChannelDto dto);
     @ApiOperation("频道新增列表")
     public ResponseResult insert(AdChannel channel);
     @ApiOperation("频道更新列表")
     public ResponseResult update(AdChannel channel);
     @ApiOperation("频道删除列表")
     public ResponseResult deleteById(@ApiParam("文档的ID") Integer id);

     //查询所有频道
    ResponseResult findAll();

}
